// 签名
import _bale from '../utils/package.js'
// 获取不同的接口地址
import { SEARCH_API  ,INDEXS_API} from '../config/index.js'
import { Service } from '../utils/server.js'
class SearchModel extends Service {
  //搜索
  q(params) {
    return this.postRequest(SEARCH_API + '/share/q', {
      data: _bale('q', params)
      // data:params
    })
  }
  // 查询搜索关键字
  queryRecommend(params) {
    return this.postRequest(SEARCH_API + '/query/queryRecommend', {
      data: _bale('queryRecommend', params)
    })
  }

  // 轮播筛选项
  getSearchItems(params) {
    return this.postRequest(INDEXS_API + '/banner/screen', {
      data: _bale('screen', params)
    })
  }
  
}
export { SearchModel }